From 42a02761117518e30cef87289f626f0ab7066e0d Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Sat, 23 Dec 2006 19:06:31 +0000 Subject: [PATCH] Only build the message database if msgfmt is installed. Signed-off-by: Ewan Mellor --- tools/python/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/python/Makefile b/tools/python/Makefile index 3732c06aa9..9e957fedf3 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -7,12 +7,14 @@ all: build .PHONY: build build: CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build - for file in `cd xen/xm; find messages -name xen-xm.po`; do \ + if which msgfmt >/dev/null ; then \ + for file in `cd xen/xm; find messages -name xen-xm.po`; do \ dest=`echo "build/$$file" | \ sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \ mkdir -p `dirname "$$dest"`; \ msgfmt -c -o "$$dest" "xen/xm/$$file"; \ - done + done; \ + fi .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL -- 2.30.2